<div class="form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'archives-form',
	'enableAjaxValidation'=>false,
)); ?>

	<p class="note">Fields with <span class="required">*</span> are required.</p>

	<?php echo $form->errorSummary($model); ?>

	<div class="row">
		<?php echo $form->labelEx($model,'id'); ?>
		<?php echo $form->textField($model,'id'); ?>
		<?php echo $form->error($model,'id'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'typeid'); ?>
		<?php echo $form->textField($model,'typeid'); ?>
		<?php echo $form->error($model,'typeid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'typeid2'); ?>
		<?php echo $form->textField($model,'typeid2',array('size'=>60,'maxlength'=>90)); ?>
		<?php echo $form->error($model,'typeid2'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'sortrank'); ?>
		<?php echo $form->textField($model,'sortrank',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'sortrank'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'flag'); ?>
		<?php echo $form->textField($model,'flag',array('size'=>0,'maxlength'=>0)); ?>
		<?php echo $form->error($model,'flag'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'ismake'); ?>
		<?php echo $form->textField($model,'ismake'); ?>
		<?php echo $form->error($model,'ismake'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'channel'); ?>
		<?php echo $form->textField($model,'channel'); ?>
		<?php echo $form->error($model,'channel'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'arcrank'); ?>
		<?php echo $form->textField($model,'arcrank'); ?>
		<?php echo $form->error($model,'arcrank'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'click'); ?>
		<?php echo $form->textField($model,'click'); ?>
		<?php echo $form->error($model,'click'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'money'); ?>
		<?php echo $form->textField($model,'money'); ?>
		<?php echo $form->error($model,'money'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'title'); ?>
		<?php echo $form->textField($model,'title',array('size'=>60,'maxlength'=>60)); ?>
		<?php echo $form->error($model,'title'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'shorttitle'); ?>
		<?php echo $form->textField($model,'shorttitle',array('size'=>36,'maxlength'=>36)); ?>
		<?php echo $form->error($model,'shorttitle'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'color'); ?>
		<?php echo $form->textField($model,'color',array('size'=>7,'maxlength'=>7)); ?>
		<?php echo $form->error($model,'color'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'writer'); ?>
		<?php echo $form->textField($model,'writer',array('size'=>20,'maxlength'=>20)); ?>
		<?php echo $form->error($model,'writer'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'source'); ?>
		<?php echo $form->textField($model,'source',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'source'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'litpic'); ?>
		<?php echo $form->textField($model,'litpic',array('size'=>60,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'litpic'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'pubdate'); ?>
		<?php echo $form->textField($model,'pubdate',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'pubdate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'senddate'); ?>
		<?php echo $form->textField($model,'senddate',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'senddate'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'mid'); ?>
		<?php echo $form->textField($model,'mid'); ?>
		<?php echo $form->error($model,'mid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'keywords'); ?>
		<?php echo $form->textField($model,'keywords',array('size'=>30,'maxlength'=>30)); ?>
		<?php echo $form->error($model,'keywords'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'lastpost'); ?>
		<?php echo $form->textField($model,'lastpost',array('size'=>10,'maxlength'=>10)); ?>
		<?php echo $form->error($model,'lastpost'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'scores'); ?>
		<?php echo $form->textField($model,'scores'); ?>
		<?php echo $form->error($model,'scores'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'goodpost'); ?>
		<?php echo $form->textField($model,'goodpost'); ?>
		<?php echo $form->error($model,'goodpost'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'badpost'); ?>
		<?php echo $form->textField($model,'badpost'); ?>
		<?php echo $form->error($model,'badpost'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'voteid'); ?>
		<?php echo $form->textField($model,'voteid'); ?>
		<?php echo $form->error($model,'voteid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'notpost'); ?>
		<?php echo $form->textField($model,'notpost'); ?>
		<?php echo $form->error($model,'notpost'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'description'); ?>
		<?php echo $form->textField($model,'description',array('size'=>60,'maxlength'=>255)); ?>
		<?php echo $form->error($model,'description'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'filename'); ?>
		<?php echo $form->textField($model,'filename',array('size'=>40,'maxlength'=>40)); ?>
		<?php echo $form->error($model,'filename'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'dutyadmin'); ?>
		<?php echo $form->textField($model,'dutyadmin'); ?>
		<?php echo $form->error($model,'dutyadmin'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'tackid'); ?>
		<?php echo $form->textField($model,'tackid'); ?>
		<?php echo $form->error($model,'tackid'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'mtype'); ?>
		<?php echo $form->textField($model,'mtype'); ?>
		<?php echo $form->error($model,'mtype'); ?>
	</div>

	<div class="row">
		<?php echo $form->labelEx($model,'weight'); ?>
		<?php echo $form->textField($model,'weight'); ?>
		<?php echo $form->error($model,'weight'); ?>
	</div>

	<div class="row buttons">
		<?php echo CHtml::submitButton($model->isNewRecord ? 'Create' : 'Save'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->